import { createApp } from "vue";
import "@/assets/css/reset.css";
import App from "./App.vue";

// 路由
import router from "@/router/index";
//vuex
import store from "@/store/index";
// ant
import Antd from "ant-design-vue";
import "ant-design-vue/dist/antd.css";
// ant-icon
import * as Icons from "@ant-design/icons-vue";
//
import "@/hook/socket";

const app = createApp(App);
// 路由
app.use(router);
// vuex
app.use(store);
// ant
app.use(Antd);
const icons: any = Icons;
for (const i in icons) {
  app.component(i, icons[i]);
}
// 挂載
app.mount("#app");
